package tyk.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/***
 *@title OrderItem
 *@description <TODO description class purpose>
 *@author Tang'ya'kang
 *@VERSION 1.0.0
 *@CREATE 2023/5/18 17:48
 **/
public class OrderItem {
    private Integer id;
    private String order_id;
    private String name;
    private BigDecimal price;
    private int count;
    private BigDecimal total_price;
    private Integer status;
    private Integer user_id;
    private Integer merchan_id;
    public OrderItem() {
    }

    public OrderItem(String order_id, String name, BigDecimal price, int count, BigDecimal total_price, Integer status, Integer user_id, Integer merchan_id) {
        this.order_id = order_id;
        this.name = name;
        this.price = price;
        this.count = count;
        this.total_price = total_price;
        this.status = status;
        this.user_id = user_id;
        this.merchan_id = merchan_id;
    }

    public OrderItem(Integer id, String order_id, String name, BigDecimal price, int count, BigDecimal total_price, Integer status, Integer user_id, Integer merchan_id) {
        this.id = id;
        this.order_id = order_id;
        this.name = name;
        this.price = price;
        this.count = count;
        this.total_price = total_price;
        this.status = status;
        this.user_id = user_id;
        this.merchan_id = merchan_id;
    }

    public String getOder_id() {
        return order_id;
    }

    public void setOder_id(String oder_id) {
        this.order_id = oder_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public BigDecimal getTotal_price() {
        return total_price;
    }

    public void setTotal_price(BigDecimal total_price) {
        this.total_price = total_price;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getMerchan_id() {
        return merchan_id;
    }

    public void setMerchan_id(Integer merchant_id) {
        this.merchan_id = merchant_id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "order_id='" + order_id + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", count=" + count +
                ", total_price=" + total_price +
                ", status=" + status +
                ", user_id=" + user_id +
                ", merchan_id=" + merchan_id +
                '}';
    }
}
